const express = require('express');
const router = express.Router();
const userController = require('../contorller/userContorller');
const { verifyToken } = require('../utiles/jwt');
router
//用户登录
.post('/login',userController.login)
//修改密码
.put('/changePassword',verifyToken(),userController.changePassword)
//获取用户信息
.get('/getUserInfo',verifyToken(),userController.getUserInfo)
module.exports = router;